/**
 * 车次接口
 */

const apiTrains = {
  /**
   * 车次列表
   */
  get: (params) => {
    return uni.$u.http.get("/trains/query_train", {
      params: {
        from: params.from,
        to: params.to,
        date: params.date,
      },
    });
  },
};

export default apiTrains;
